/*
 * @Author: wangliang
 * @Date: 2018-04-27
 * @description: 基本信息 --> LP信息
*/

import { apiHttp } from '../../../apiHttp';
import Api from '../../../../api/company/comLpController.api';
import { ComLPDto, JsonResult } from '../../../../api/Interface';
import {  CommonDto } from '../companyInterface';
export default {
    // 添加LP信息
    saveComLP: async (comLP: ComLPDto): Promise<JsonResult> => {
        const res: JsonResult = await apiHttp(Api.saveComLP, comLP);
        return res;
    },
    // LP信息列表
    getComLP: async (companyId: {companyId: number}): Promise<JsonResult> => {
        const res: JsonResult = await apiHttp(Api.getComLP, companyId);
        return res;
    },
    // 编辑LP信息
    updateComLP: async (comLP: ComLPDto): Promise<JsonResult> => {
        const res: JsonResult = await apiHttp(Api.updateComLP, comLP);
        return res;
    },
    // 投资基金列表
    getLpFundByCompanyId: async (common: CommonDto): Promise<JsonResult> => {
        const res: JsonResult = await apiHttp(Api.getLpFundByCompanyId, common);
        return res;
    },
};